<?php
/*
Template Name: Archives
*/
?>

<?php get_header(); ?>
<div id="content" class="grid_18">
	<div class="box-1">
		<div class="inner">
			<?php if (have_posts()) : the_post(); update_post_caches($posts); ?>

				<div class="post" id="post-<?php the_ID(); ?>">
					<h2><?php the_title(); ?></h2>
					<div class="info">
						<span class="date"><?php the_modified_time(__('F jS, Y', 'arena_softech')); ?></span>
						<?php edit_post_link(__('Edit', 'arena_softech'), '<span class="editpost">', '</span>'); ?>
						<?php if ($comments || comments_open()) : ?>
							<span class="addcomment"><a href="#respond"><?php _e('Leave a comment', 'arena_softech'); ?></a></span>
							<span class="comments"><a href="#comments"><?php _e('Go to comments', 'arena_softech'); ?></a></span>
						<?php endif; ?>
						<div class="fixed"></div>
					</div>
					<div class="content">
						<?php
							if (function_exists('wp_easyarchives')) {
								wp_easyarchives();
							} else {
								echo '<ul>';
								wp_get_archives('type=monthly&show_post_count=1');
								echo '</ul>';
							}
						?>
					</div>
				</div>

				<?php include('templates/comments.php'); ?>

			<?php else : ?>
				<div class="errorbox">
					<?php _e('Sorry, no posts matched your criteria.', 'arena_softech'); ?>
				</div>
			<?php endif; ?>
		</div><!---#end content-->
	</div><!---.end box-1-->
</div><!---.end inner-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
